#include "mystdio.h"
#include <string.h>

const char *filename = "./log.txt";

int main()
{
    myFILE *fp = my_fopen(filename, "w");
    if(fp == NULL)
		return 1;

    const char *s = "this is myself stdio interface\n";
    
    my_fwrite(fp, s, strlen(s));

    my_fclose(fp);
    
    return 0;
}
